package dao;

import java.sql.SQLException;

import javax.naming.NamingException;

import org.eclipse.jdt.annotation.NonNull;

import bean.Account;

public interface AccountDAO {

    int selectIdByAccount(@NonNull Account temporary) throws NamingException, SQLException;

    boolean insert(@NonNull Account temporary) throws SQLException, NamingException;

    boolean update(@NonNull Account temporary, @NonNull String newPassword) throws SQLException, NamingException;

}